package o;

import android.content.Context;
import com.huawei.appgallery.datastorage.database.AbsDataDAO;
import com.huawei.appgallery.packagemanager.api.bean.ManagerTask;
import com.huawei.appgallery.packagemanager.impl.storage.PmDataBase;
import java.util.List;

public class cpc extends AbsDataDAO {
    private static cpc ˊ = null;
    private static final Object ॱ = new Object();

    public static cpc ˎ(Context context) {
        cpc o_cpc;
        synchronized (ॱ) {
            if (ˊ == null) {
                ˊ = new cpc(context);
            }
            o_cpc = ˊ;
        }
        return o_cpc;
    }

    private cpc(Context context) {
        super(context, PmDataBase.class, ManagerTask.class);
    }

    public List<ManagerTask> ˋ() {
        return this.ˏ.ˏ(ManagerTask.class, "taskIndex ASC");
    }

    public void ˊ(ManagerTask managerTask) {
        this.ˏ.ˊ((blw) managerTask);
    }

    public void ˎ(long j) {
        this.ˏ.ˎ("taskId=?", new String[]{String.valueOf(j)});
    }

    public void ˏ(ManagerTask managerTask) {
        this.ˏ.ˎ(managerTask, "taskId=?", new String[]{String.valueOf(managerTask.taskId)});
    }
}
